{% extends "site.html" %}
{% block title %}{% endblock %}
{% block stylesheet %}{% load media %}{% media_prefix %}css/sklad.css{% endblock %}
{% block extrastyle %}<link rel="stylesheet" type="text/css" href="{% media_prefix %}css/sklad-tree.css">{% endblock %}
{% block globalconteiner %}
<div id="title"><h1>Sklad</h1></div>
{% block main %}

<table border="0" style="clear: both;padding-top: 30px;" width="100%">
<tr><td width="451px">

<div id="contentleft">
<h5>contentleft</h5>



<script type="text/javascript">
    function UnHide( eThis ){
        if( eThis.innerHTML.charCodeAt(0) == 9658 ){
            eThis.innerHTML = '&#9660;'
            eThis.parentNode.parentNode.parentNode.className = '';
        }else{
            eThis.innerHTML = '&#9658;'
            eThis.parentNode.parentNode.parentNode.className = 'cl';
        }
        return false;
    }
</script>




<div class="treeview">
    <ul>
    {% for item in categorys %}
        {% for i in item.level_div %}</ul></li>  {% endfor %}
        {% if item.child_present %} 
        <li class="cl">
            <div>
                <p>
                    <a href="#" class="sc" onclick="return UnHide(this)">&#9658;</a>
                    <a href="#">{{ item.name }}</a>
                </p>
            </div>
                <ul>
        {% else %}
            <li>
                <div>
                    <p>
                        <a href="#"><img src="{% media_prefix %}img/no.gif" class="i" />{{ item.name }}</a>
                    </p>
                </div>
            </li>
        {% endif %}    
    {% endfor %}
    </ul>
</div>


{% comment %} and 
{% for item in categorys %}
  <div>
    <samp style="padding-left: {{ item.csslevel }}px">
    {% ifequal item.id currentcategory %}<b>{% endifequal %}
       <a href="{% url sklad.views.index %}">{{ item.name }} - {{ item.level_div }}</a>
    {% ifequal item.id currentcategory %}</b>{% endifequal %}
    </samp>
  </div>
{% endfor %}
{% endcomment %}

</div>
</td><td>


<div id="contentright">
{% block content %}
<h5>content</h5>
{% endblock %}
</div>
</td>
<td width="150px">


</td></tr></table>

{% endblock %}

{% endblock %}
{% block meta %}
Version:&nbsp;0.0.1.0&nbsp;&nbsp;Date:&nbsp;16.07.2009
{% endblock %}	

